SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 39461: Courier New font might display incorrectly in an RTF file created with the RTF tagset

DetailsCodeAboutRate It

When an RTF file created with the RTF tagset is displayed in Microsoft Word, the Font drop-down box will contain "Courier New" as the value of the font being used. However, the font in the table cells will not actually display as Courier New.

This problem is most likely to occur when all of the following are true:

  • The DBCS option is in effect.
  • The locale is English.
  • The Courier New font is requested in a style created by PROC TEMPLATE.
  • No PARENT is specified in the style template.

The code below generates a problematic RTF file. To circumvent the problem, generate the RTF file with no leading spaces in the font name in the header of the RTF file. Please see the code in the Full Code tab for an example.

proc template; define style test; style fonts / "XFont" = ("Courier New",9pt); style Container / font = Fonts('XFont'); end; run; quit; data a; a="AAAA"; run; ods listing close; ods tagsets.rtf file="test.rtf" style=test; proc print data=a; run; ods tagsets.rtf close; ods listing;


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.2 TS2M29.3 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.2 TS2M29.3 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS2M29.3 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS2M29.3 TS1M0
Microsoft Windows XP 64-bit Edition9.2 TS2M29.3 TS1M0
Microsoft® Windows® for x649.2 TS2M29.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.2 TS2M29.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.2 TS2M29.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.2 TS2M29.3 TS1M0
Microsoft Windows Server 20089.2 TS2M29.3 TS1M0
Microsoft Windows XP Professional9.2 TS2M29.3 TS1M0
Windows 7 Enterprise 32 bit9.2 TS2M29.3 TS1M0
Windows 7 Enterprise x649.2 TS2M29.3 TS1M0
Windows 7 Home Premium 32 bit9.2 TS2M29.3 TS1M0
Windows 7 Home Premium x649.2 TS2M29.3 TS1M0
Windows 7 Professional 32 bit9.2 TS2M29.3 TS1M0
Windows 7 Professional x649.2 TS2M29.3 TS1M0
Windows 7 Ultimate 32 bit9.2 TS2M29.3 TS1M0
Windows 7 Ultimate x649.2 TS2M29.3 TS1M0
Windows Vista9.2 TS2M29.3 TS1M0
64-bit Enabled AIX9.2 TS2M29.3 TS1M0
64-bit Enabled HP-UX9.2 TS2M29.3 TS1M0
64-bit Enabled Solaris9.2 TS2M29.3 TS1M0
HP-UX IPF9.2 TS2M29.3 TS1M0
Linux9.2 TS2M29.3 TS1M0
Linux for x649.2 TS2M29.3 TS1M0
OpenVMS on HP Integrity9.2 TS2M29.3 TS1M0
Solaris for x649.2 TS2M29.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.